package com.wx.mall.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 运费模板实体类
 * </p>
 *
 * @author ljl
 * @since 2020-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_carriage_template")
@ApiModel(value="CarriageTemplate对象", description="")
public class CarriageTemplate implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "运费模板编号")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "运费模板名称")
    private String name;

    @ApiModelProperty(value = "运费模板费用计算方式 1 按重量计算 2 按件数计算")
    private String pricingModel;

    @ApiModelProperty(value = "运费模板起步重量或起步件数")
    private Double firstWeight;

    @ApiModelProperty(value = "运费模板起步价")
    private BigDecimal firstExpense;

    @ApiModelProperty(value = "运费模板续重或续件")
    private Double extendWeight;

    @ApiModelProperty(value = "运费模板加价")
    private BigDecimal extendExpense;

    @ApiModelProperty(value = "运费模板地区")
    private String region;

    @ApiModelProperty(value = "运费模板添加时间")
    private Date time;

    @ApiModelProperty(value = "运费模板启用状态 0 未启用 1 启用")
    private Integer enabled;

    @ApiModelProperty(value = "运费模板删除状态 0 未删 1 已删")
    private String state;


}
